<div class="pwd-div">
  <div class="title">修改密码</div>
  <nz-form-label nzRequired >原密码</nz-form-label>
  <input type="password" readonly nz-input [(ngModel)]="oldpassword" id="testInput" (focus)="onFocusOld()"  placeholder="请输入原密码">
  <nz-form-explain class="checkResult" *ngIf="oldpwdcode==-1">请输入原密码!</nz-form-explain>
  <nz-form-label nzRequired nzFor="newpassword">新密码</nz-form-label>
  <input type="password" nz-input [(ngModel)]="newpassword" (focus)="onFocusNew()" placeholder="请输入新密码">
  <nz-form-explain class="checkResult" *ngIf="newpwdcode==-1">请输入新密码!</nz-form-explain>
  <nz-form-label nzRequired nzFor="password2">确认新密码</nz-form-label>
  <input type="password" nz-input [(ngModel)]="newpassword2"   (focus)="onFocusNewC()" placeholder="请输入新密码">
  <nz-form-explain class="checkResult" *ngIf="newpwdcode2==-1">请输入新密码!</nz-form-explain>
  <nz-form-explain class="checkResult" *ngIf="newpwdcode2==-2">两次输入新密码不一致!</nz-form-explain>
  <div style="margin:20px auto;text-align: center;">
    <button nz-button nzType="primary" [nzLoading]="btn_loading" (click)="editPwd()">确定</button>
  </div>
</div>